package com.itheima.mapper.client;

import com.itheima.pojo.client.AddUserDto;
import com.itheima.pojo.client.SelectUserById;
import com.itheima.pojo.client.SelectUserByPhoneDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ChenJunJie
 * @date 2022/6/13 16:19
 * 用户的mapper层
 */
@Mapper
public interface UserMapper {

    //新增用户
    int addUser(AddUserDto addUserDto);

    //通过手机号查询用户
    SelectUserByPhoneDto selectUserByPhone(SelectUserByPhoneDto user);

    //通过userID查询用户
    SelectUserById selectUserById(@Param("userId") String userId);
}

